package com.tomcov.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.tomcov.shared.Journey;
import com.tomcov.shared.JourneyPassenger;

public interface JourneyPassengerServiceAsync {
	
	void addJourney(JourneyPassenger jp,AsyncCallback<JourneyPassenger> ac);
	void delete(JourneyPassenger jp,AsyncCallback<JourneyPassenger> ac);
	void getJourneyByName2(String Username,AsyncCallback<List<JourneyPassenger>> ac);
	void getJourneyByName(String Username,AsyncCallback<List<JourneyPassenger>> ac);
	void getJourneyAtSameDate(Journey J, AsyncCallback<List<JourneyPassenger>> ac);
	void delete(String id,AsyncCallback<JourneyPassenger> ac);
	void adddriver(JourneyPassenger jp, AsyncCallback<JourneyPassenger> asyncCallback);
	void getJourneyById(String journeypassidnumber,AsyncCallback<JourneyPassenger> asyncCallback);

}
